home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 3
/
ct-rom iiib.zip
/
ct-rom iiib
/
OS2
/
PROGRAM
/
LB05
/
TREKEXP.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-03-05
|
2KB
|
74 lines
'open a graphical window and display startrek ships
drawX = 40
drawY = 40
WindowWidth = 300
WindowHeight = 300
open "TREK SHIPS" for graphics as #1
print #1, "fill black"
print #1, "color white"
'print #1, "home ; down ; size 51 ; circle 25"
'print #1, "size 10 ; circle 45"
for x = 0 to 342 step 54
print #1, "home"
angle = x
print #1, "north; up; turn "; angle; "; go 100; down"
print #1, "posxy"
input #1, drawX, drawY
gosub [Enterprise]
next x
print #1, "home"
'for x = 22 to 50 step 5
' print #1, "size "; 53-x; " ; circle "; x
' next x
'print #1, "size 10 ; circle 3"
'print #1, "size 5 ; circle 10"
'print #1, "size 4 ; circle 14"
'print #1, "size 3 ; circle 16"
'print #1, "size 1 ; circle 18"
input r$
end
[Enterprise]
print #1, "color white"
print #1, "place "; drawX; " "; drawY
print #1, "north; turn "; angle; "; down; turn 280; go 8; turn 80; go 9; turn 180; size 2; go 15"
print #1, "size 1"
print #1, "place "; drawX; " "; drawY
print #1, "north; turn "; angle; "; turn 80; go 8; turn 280; go 9; turn 180; size 2; go 15"
print #1, "size 1"
print #1, "place "; drawX; " "; drawY
print #1, "north; turn "; angle; "; go 3 ; turn 180; size 2; go 14"
size =45
gosub [drawCircle]
print #1, "flush"
print #1, "size 1"
return
[drawCircle]
print #1, "size "; size + 1; " ; circle "; int(size / 2)
print #1, "size "; int(size / 5) + 1; " ; circle "; int(size * 0.9)+1
return
print #1, "home ; down ; size 51 ; circle 25"
print #1, "size 10 ; circle 45"